<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
		<meta name="keywords" content="浙江刑事律师,杭州刑事律师,刑事律师,刑辩律师,浙江刑事辩护律师,浙江刑辩律师,杭州刑事辩护律师,杭州刑辩律师" />
		<meta name="description" content="刑辩是法治的风向标。民主盛行、法治完备，刑辩才有其应有的地位和作用。同时，也只有刑辩专业化达到一定水准，才能取得执政党和人民群众的认可，获得应有的地位。靖霖律师将努力践行刑辩专业化的道路，打造一支刑辩" />
		<title>靖霖(宁波)律师事务所 - 浙江刑事律师,杭州刑事律师,浙江刑辩律师 - 经典案例</title>
		<link href="lvshi/iconfont/iconfont.css" rel="stylesheet" type="text/css" />
		<link rel="stylesheet" href="lvshi/css/swiper.min.css">
		<link rel="stylesheet" type="text/css" href="lvshi/css/common.css" />
		<style type="text/css">
			.case-title {
				overflow: hidden;
				text-overflow: ellipsis;
				display: -webkit-box;
				-webkit-box-orient: vertical;
				-webkit-line-clamp: 2;
				white-space: normal;
			}
		</style>
	</head>

	<body>
		<header><img class="logo" src="img/logo.png" alt=""></header>
		<div class="main">
			<!--<div class="swiper-container filter">
				<div class="swiper-wrapper">
					<div class="swiper-slide filter-item filter-item-active">全部</div>
					<div class="swiper-slide filter-item">公司犯罪</div>
					<div class="swiper-slide filter-item">海事犯罪</div>
					<div class="swiper-slide filter-item">职务犯罪</div>
					<div class="swiper-slide filter-item">金融犯罪</div>
					<div class="swiper-slide filter-item">毒品犯罪</div>
					<div class="swiper-slide filter-item">网络犯罪</div>
					<div class="swiper-slide filter-item">走私犯罪</div>
				</div>
			</div>-->
			<ul class="case-list list" id="list_content">

			</ul>
			<div style="text-align: center;line-height: 50px;">
				<img style="display: none;" class="loading" src="lvshi/img/loading.gif" style="width: 20px;" alt="">
				<div class="showMore" style="color: #006699;font-size: 12px;display: none;">点击加载更多>></div>
			</div>
		</div>
		<footer>
			<div data-href="/">
				<i class="iconfont iconfont-shouye footer-iconfont"></i>
				<div>首页</div>
			</div>
			<div data-href="lvshi_list2">
				<i class="iconfont iconfont-haoyou footer-iconfont"></i>
				<div>专业团队</div>
			</div>
			<div data-href="article">
				<i class="iconfont iconfont-wenjian footer-iconfont"></i>
				<div>经典案例</div>
			</div>
			<div data-href="news">
				<i class="iconfont iconfont-tuwenxiangqing footer-iconfont footer-iconfont-active"></i>
				<div class="footer-font">行业新闻</div>
			</div>
			<div data-href="lvshi_contact">
				<i class="iconfont iconfont-dianhua footer-iconfont">&#xf01ef;</i>
				<div>联系我们</div>
			</div>
		</footer>

		<script type="text/javascript" src="lvshi/js/jquery.min.js"></script>
		<script type="text/javascript" src="lvshi/js/swiper.min.js"></script>
		<script type="text/javascript" src="lvshi/js/common.js"></script>
		<script type="text/javascript">
			var swiper = new Swiper('.swiper-container', {
				slidesPerView: 4.5,
				slidesPerGroup: 4
			});

			var params = {
				type: '新闻', //领域
				limit: 10, //记录数
				offset: 1 //页码
			};
			$(document).ready(function() {
				// params.name=decodeURI(getQueryString("name"));
				// params.expert=decodeURI(getQueryString("expert"));
				$(".swiper-slide").each(function() {
					if($(this).html() == params.expert) {
						$(this).addClass("filter-item-active");
					}
				});
				search(); //搜索

				$('.showMore').click(function() {
					if($(this).html() == '没有更多数据了...') {
						return false;
					}
					var page = params.offset;
					page++;
					params.offset = page;
					search();
				})
			});
			//查询方法
			function search() {
				if(params.offset == 1) {
					$('#list_content').html('');
				}

				$('.loading').show();
				$('.showMore').hide().html('点击加载更多>>').css({
					'color': '#006699'
				});
				setTimeout(function() {
					$.ajax({
						url: 'content/list',
						type: 'get',
						data: params,
						dataType: "json",
						success: function(data) {
							// clearInterval(intv);
							$('.loading').hide();
							$('.showMore').show();
							var contentHtml = "";
							console.log(data.rows.length < params.limit)

							if(data.page > data.totalPages) {
								$('.showMore').html('没有更多数据了...').css({
									'color': '#999'
								});
								return false;
							}
							if(data.rows) {
								if(data.rows.length < params.limit) {
									$('.showMore').html('没有更多数据了...').css({
										'color': '#999'
									});
								}
								for(var i = 0; i < data.rows.length; i++) {
									var obj = data.rows[i];
									var imgHtml = "<span class='noImg'>暂无图片</span>";
									if(obj.image) {
										imgHtml = "<img src='" + obj.image + "'/>";
									}
									contentHtml += "<li data-id = '" + obj.id + "'>" + imgHtml + "<div><div class='case-title'>" + obj.title + "</div><div class='case-info' style='margin-top:5px;'><span>时间：" + obj.crtTime + "</span></div></div></li>";

								}
								$("#list_content").append(contentHtml);

								initCaseList1();
							}
						}
					});
				}, 2000)

			}
		</script>

	</body>

</html>